package com._23DesignPattern._create._builder._ex2;

/**
 * @Author: huangya
 * @Date: 2019/9/25
 * @Description:
 */
public class SonyBuilder extends Builder {

    SonyPhone sonyPhone;

    public SonyBuilder() {
        sonyPhone=new SonyPhone();
    }

    @Override
    public void builderScreen(String screen) {
        sonyPhone.setmScreen(screen);

    }

    @Override
    public void buildCamera(String camrea) {
        sonyPhone.setmCamera(camrea);
    }

    @Override
    public void buildCpu(String cpu) {
        sonyPhone.setmCPU(cpu);

    }

    @Override
    public Phone creat() {
        return sonyPhone;
    }

    @Override
    public void buildSystem() {
        sonyPhone.setSystem();
    }


}
